package edu.hzit.data.mapper;

import edu.hzit.data.entity.FitnessDate;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FitnessDateMapper {
    /**
     * 插入
     * @param fitnessDate
     * @return
     */
    public int insert(FitnessDate fitnessDate);
    /**
     * 查询全部
     * @return
     */
    public List<FitnessDate> loadList();
    /**
     * 根据fId查询
     * @param fId
     * @return
     */
    public FitnessDate selectById(int fId);
    /**
     * 根据fId删除
     * @param fId
     * @return
     */
    public int delete(int fId);
    /**
     * 根据id更新
     * @param fitnessDate
     * @return
     */
    public int update(FitnessDate fitnessDate);
}
